#include <stdio.h>

int is_in_net(unsigned char *ip, unsigned char *netip, unsigned char *mask) {
    for (int i = 0; i < 4; i++) {
        if ((ip[i] & mask[i]) != (netip[i] & mask[i])) {
            return 0;
        }
    }
    return 1;
}

int main() {
    unsigned char ip[] = {192, 168, 1, 10};
    unsigned char netip[] = {192, 168, 1, 0};
    unsigned char mask[] = {255, 255, 255, 0};

    if (is_in_net(ip, netip, mask)) {
        printf("Match\n");
    } else {
        printf("Mismatch\n");
    }

    return 0;
}